package com.testpro.learn.springbootscala

import org.springframework.context.annotation.{Bean, Configuration}

@Configuration
class ConfigBean {
  @Bean(name = Array("ChinaPerson"))
  def getChinaPerson(): ChinaPerson = {
    println("开始进行ScalaBean注册到SpringIod中")
    val person = new ChinaPerson()
    person.sex = "男"
    person.age = "29"
    person.name = "王大锤"
    person

  }
}
